Skip to main content

multinomial

multinomial(matrix1: any[] | Mat | Tensor ) : number

param matrix1 an Array, Mat, Tensor, or a series of numbers - the construct to find the multinomial coeff. of

returns Number - a number representing the multinomial of matrix1

This function finds the multinomial coefficient of numbers in a data structure according to the formula below. One can think of it as an analogue for the binomial probability distribution and its coefficients. However, this is for the multinomial case.

multinomial(x)=(x1+x2+...+xn)!x1!x2!...xn!